﻿/*CLR Version: 4.0.30319.18063
 * Creat Date: 2016/6/27 10:26:02
 * Creat Year: 2016
 * Creator: 程炜.Snail
 */
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.Common;
using System.Data.SQLite;

namespace Utility.DBUtility
{
    /// <summary>
    /// 需要批量执行的SQL 和 参数
    /// </summary>
    public class ExcuteSqlParameters
    {
        private string m_Key = Guid.NewGuid().ToString().ToUpper();
        /// <summary>
        /// key
        /// </summary>
        public string Key
        {
            get { return m_Key; }
        }
        /// <summary>
        /// SQL 语句
        /// </summary>
        public string Sql { get; set; }
        /// <summary>
        /// 参数
        /// </summary>
        public dynamic Parameters { get; set; }
    }
    /// <summary>
    /// 自定义参数类型
    /// </summary>
    public class CustomParameter
    {
        /// <summary>
        /// 列名
        /// </summary>
        public string ColumnName
        { get; set; }
        /// <summary>
        /// 变量名称(拼接字符串)
        /// </summary>
        public string Parameter
        {
            get; set;
        }
        /// <summary>
        /// 参数值
        /// </summary>
        public object Value
        { get; set; }
    }
}
